/* NOTICE
 
    Jim - the Java Image Manager, copyright (c) 2005 - 2007 Grant Gardner 
 
    Jim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Jim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
    In addition, as a special exception, you are permitted to link this code
    with the 3rd party libraries required to compile this file and to
    distribute a linked combination including them. You must obey the
    GNU General Public License in all respects for all of the code except for
    those 3rd party libraries that are licenced under terms incompatible with the
    GNU General Public License.  
 
 
 NOTICE */

/*
 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
 */

package au.com.lastweekend.jim.io.exif.makernote.casio;

import java.util.HashMap;
import java.util.Map;

import au.com.lastweekend.jim.io.metadata.Directory;

/**
 * 
 * 
 * 
 * @version $Id: CasioMakernoteDirectory.java,v 1.3 2006/02/20 12:21:11 ggardner Exp $
 * @author <a href="mailto:grant@lastweekend.com.au"> <Grant Gardner> </a>
 */
public class CasioMakernoteDirectory extends Directory {

    public static final int TAG_CASIO_RECORDING_MODE = 0x0001;
    public static final int TAG_CASIO_QUALITY = 0x0002;
    public static final int TAG_CASIO_FOCUSING_MODE = 0x0003;
    public static final int TAG_CASIO_FLASH_MODE = 0x0004;
    public static final int TAG_CASIO_FLASH_INTENSITY = 0x0005;
    public static final int TAG_CASIO_OBJECT_DISTANCE = 0x0006;
    public static final int TAG_CASIO_WHITE_BALANCE = 0x0007;
    public static final int TAG_CASIO_UNKNOWN_1 = 0x0008;
    public static final int TAG_CASIO_UNKNOWN_2 = 0x0009;
    public static final int TAG_CASIO_DIGITAL_ZOOM = 0x000A;
    public static final int TAG_CASIO_SHARPNESS = 0x000B;
    public static final int TAG_CASIO_CONTRAST = 0x000C;
    public static final int TAG_CASIO_SATURATION = 0x000D;
    public static final int TAG_CASIO_UNKNOWN_3 = 0x000E;
    public static final int TAG_CASIO_UNKNOWN_4 = 0x000F;
    public static final int TAG_CASIO_UNKNOWN_5 = 0x0010;
    public static final int TAG_CASIO_UNKNOWN_6 = 0x0011;
    public static final int TAG_CASIO_UNKNOWN_7 = 0x0012;
    public static final int TAG_CASIO_UNKNOWN_8 = 0x0013;
    public static final int TAG_CASIO_CCD_SENSITIVITY = 0x0014;

    protected static final HashMap<Integer, String> TAG_NAME_MAP = new HashMap<Integer, String>();

    static {
        TAG_NAME_MAP.put(TAG_CASIO_CCD_SENSITIVITY, "CCD Sensitivity");
        TAG_NAME_MAP.put(TAG_CASIO_CONTRAST, "Contrast");
        TAG_NAME_MAP.put(TAG_CASIO_DIGITAL_ZOOM, "Digital Zoom");
        TAG_NAME_MAP.put(TAG_CASIO_FLASH_INTENSITY, "Flash Intensity");
        TAG_NAME_MAP.put(TAG_CASIO_FLASH_MODE, "Flash Mode");
        TAG_NAME_MAP.put(TAG_CASIO_FOCUSING_MODE, "Focussing Mode");
        TAG_NAME_MAP.put(TAG_CASIO_OBJECT_DISTANCE, "Object Distance");
        TAG_NAME_MAP.put(TAG_CASIO_QUALITY, "Quality");
        TAG_NAME_MAP.put(TAG_CASIO_RECORDING_MODE, "Recording Mode");
        TAG_NAME_MAP.put(TAG_CASIO_SATURATION, "Saturation");
        TAG_NAME_MAP.put(TAG_CASIO_SHARPNESS, "Sharpness");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_1, "Makernote Unknown 1");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_2, "Makernote Unknown 2");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_3, "Makernote Unknown 3");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_4, "Makernote Unknown 4");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_5, "Makernote Unknown 5");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_6, "Makernote Unknown 6");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_7, "Makernote Unknown 7");
        TAG_NAME_MAP.put(TAG_CASIO_UNKNOWN_8, "Makernote Unknown 8");
        TAG_NAME_MAP.put(TAG_CASIO_WHITE_BALANCE, "White Balance");
    }

    public CasioMakernoteDirectory(Directory parent) {

        super(parent);
        this.setDescriptor(new CasioMakernoteDescriptor(this));
    }

    @Override
    public String getName() {

        return "Casio Makernote";
    }

    @Override
    protected Map<Integer, String> getTagNameMap() {

        return TAG_NAME_MAP;
    }
}